#$Id: PKGBUILD 89659 2013-05-01 20:20:43Z jelle $
#Maintainer: Aaron Griffin <aaron@archlinux.org>
#Contributor: Federico Quagliata (quaqo) <quaqo@despammed.com>
#Contributor: cdhotfire <cdhotfire@gmail.com>

pkgname=python2-eyed3
pkgver=0.7.1
pkgrel=2
pkgdesc="A Python module and program for processing information about mp3 files"
arch=(any)
url="http://eyed3.nicfit.net/"
license=('GPL')
depends=('python2')
makedepends=('python2-distribute')
source=(http://eyed3.nicfit.net/releases/eyeD3-$pkgver.tgz fix_setting_tcmp_frame.patch)
options=(!emptydirs)
replaces=('python-eyed3')
provides=('python-eyed3')
md5sums=('05fc6031fef62146c1aca188d13a62a6'
         '3b207f52fda00cb178e7b351fc80bdfb')

build() {
  cd $srcdir/eyeD3-$pkgver
  patch -Np1 -i $srcdir/fix_setting_tcmp_frame.patch 
  python2 setup.py build
}
package() {
  cd $srcdir/eyeD3-$pkgver
  python2 setup.py install --root="${pkgdir}" --optimize=1 
  sed -i 's/python/python2/' $pkgdir/usr/bin/eyeD3
} 
